package com.ruoyi.machine.advanced.alarm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 模具管理实体类
 * 对应数据库字段 machine_alarm
 * @author lsy 2021.12.27
 * 修改：
 */
@Data
@NoArgsConstructor
public class MachineAlarm {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = true)
    private long increasingId;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号", required = true)
    private String machineId;

    /**
     * 机器名称
     */
    @ApiModelProperty("机器名称")
    private String machineName;

    /**
     * 警报时间
     */
    @ApiModelProperty("警报时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp createTime;

    /**
     * 警报内容
     */
    @ApiModelProperty(value = "警报内容")
    private String alarmContent;

    public MachineAlarm(String machineId, String alarmContent) {
        this.machineId = machineId;
        this.alarmContent = alarmContent;
    }
}
